<?php

/**
 * module.config.php
 * Fichier de configuration du module
 *
 * @package RHX
 * @author Donat Kamary
 */
return array(
    /* VIEWS CONFIG */
    'view_manager'	 => array(
	'template_path_stack'		 => array(
	    __DIR__ . '/../view',
	),
	'template_map'			 => array(
	    'layout/rhx'		 => __DIR__ . '/../view/layout/rhx.phtml',
	    'layout/rhx2'		 => __DIR__ . '/../view/layout/rhx2.phtml',
	    'layout/ajax'		 => __DIR__ . '/../view/layout/ajax.phtml',
	    'layout/iframe'		 => __DIR__ . '/../view/layout/iframe.phtml',
	    'layout/iframe2'	 => __DIR__ . '/../view/layout/iframe2.phtml',
	    'error/404'		 => __DIR__ . '/../view/error/404.phtml',
	    'error/exception'	 => __DIR__ . '/../view/error/exception.phtml',
	),
	'display_not_found_reason'	 => true,
	'display_exceptions'		 => true,
	'doctype'			 => 'HTML5',
	'not_found_template'		 => 'error/404',
	'exception_template'		 => 'error/exception',
	'strategies'			 => array('ViewJsonStrategy',),
    ),
    /* ROUTERS CONFIG */
    'router'	 => array(
	'routes' => array(
	    /* home */
	    'home'	 => array(
		'type'		 => 'Zend\Mvc\Router\Http\Literal',
		'options'	 => array(
		    'route'		 => '/',
		    'defaults'	 => array(
			'controller'	 => 'Application\Controller\Index',
			'action'	 => 'index',
		    ),
		),
	    ),
	    /* RHX */
	    'RHX'	 => array(
		'type'		 => 'Literal',
		'options'	 => array(
		    'route'		 => '/RH',
		    'defaults'	 => array(
			'__NAMESPACE__'	 => 'RHX\Controller',
			'controller'	 => 'Home',
			'action'	 => 'index',
		    ),
		),
		'may_terminate'	 => true,
		'child_routes'	 => array(
		    /* Default */
		    'default' => array(
			'type'		 => 'Segment',
			'options'	 => array(
			    'route'		 => '/[:controller[/:action[/:id[/:other1[/:other2[/:other3]]]]]]',
			    'constraints'	 => array(
				'controller'	 => '[a-zA-Z][a-zA-Z0-9_-]*',
				'action'	 => '[a-zA-Z][a-zA-Z0-9_-]*',
				'id'		 => '[0-9]+',
				'other1'	 => '[0-9]+',
				'other2'	 => '[0-9]+',
			    ),
			    'defaults'	 => array(),
			),
		    ),
		/* Archive */
		//		    'archive' => array(),
		/* Options */
		//		    'options'	 => array(),
		),
	    ),
	),
    ),
    /* CONTROLLERS */
    'controllers'	 => array(
	'invokables' => array(
	    'RHX\Controller\RHX'		 => 'RHX\Controller\RHXController', // Base
	    'RHX\Controller\Home'		 => 'RHX\Controller\HomeController', // Page d'accueil
	    'RHX\Controller\Periode'	 => 'RHX\Controller\PeriodeController', // Périodes
	    'RHX\Controller\Site'		 => 'RHX\Controller\SiteController', // Sites
	    'RHX\Controller\Activite'	 => 'RHX\Controller\ActiviteController', // Code d'activités
	    'RHX\Controller\Profil'		 => 'RHX\Controller\ProfilController', // Profil Employé
	    'RHX\Controller\Poste'		 => 'RHX\Controller\PosteController', // Poste
	    'RHX\Controller\Transport'	 => 'RHX\Controller\TransportController', // Titre de Transport
	    'RHX\Controller\Employe'	 => 'RHX\Controller\EmployeController', // Employés
	    'RHX\Controller\Template'	 => 'RHX\Controller\TemplateController', // Planning Type Semaine
	    'RHX\Controller\Planning'	 => 'RHX\Controller\PlanningController', // Planning Semaine
	    'RHX\Controller\Variable'	 => 'RHX\Controller\VariableController', // Variable de Paie
	    'RHX\Controller\Transfert'	 => 'RHX\Controller\TransfertController', // Transfert
	    'RHX\Controller\ContratType'	 => 'RHX\Controller\ContratTypeController', // Type de Contrat
	    'RHX\Controller\Diplome'	 => 'RHX\Controller\DiplomeController', // Diplome
	    'RHX\Controller\Formation'	 => 'RHX\Controller\FormationController', // Formation
	    'RHX\Controller\Calculator'	 => 'RHX\Controller\CalculatorController', // SuperCalculateur
	    'RHX\Controller\TitreSejour'	 => 'RHX\Controller\TitreSejourController', // Titre de Séjour
	    'RHX\Controller\Mutuelle'	 => 'RHX\Controller\MutuelleController', // Mutuelle
	    'RHX\Controller\Import'		 => 'RHX\Controller\ImportController', // Importation
	    'RHX\Controller\Email'		 => 'RHX\Controller\EmailController', // Email
	    'RHX\Controller\Motif'		 => 'RHX\Controller\MotifController', // Motif
	    'RHX\Controller\Tache'		 => 'RHX\Controller\TacheController', // Tache
	    'RHX\Controller\Export'		 => 'RHX\Controller\ExportController', // Exportation
	    'RHX\Controller\InstructionPaie' => 'RHX\Controller\InstructionPaieController', // Instruction de Paie            
            'RHX\Controller\BddSalaries' => 'RHX\Controller\BddSalariesController', // Bdd salariés
            'RHX\Controller\SiteHoraire' => 'RHX\Controller\SiteHoraireController', // Site horaire
            'RHX\Controller\Prime' => 'RHX\Controller\PrimeController', // Prime
            'RHX\Controller\Taux' => 'RHX\Controller\TauxController', // Taux horaire
            'RHX\Controller\Tiers' => 'RHX\Controller\TiersController', // Fiche tiers
            'RHX\Controller\Synthese' => 'RHX\Controller\SyntheseController', // Synthèse de paie
            'RHX\Controller\File' => 'RHX\Controller\FileController', // Téléchargement des fichiers
            
	),
    ),
    
    'upload_directory' => array (
        'employe'=> array(
            'photo'             => 'public/upload/photo/',            
            ),
        'site'=> array(
            'photo' => 'public/upload/site/photo/',
            'rib'   => 'public/upload/site/rib/',            
            ),
        'tiers'=> array(
            'photo' => 'public/upload/tiers/photo/',
            'rib'   => 'public/upload/tiers/rib/',
            ) 
        )
    
);
